package com.bookdemo.dao;

import com.bookdemo.pojo.Books;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhu
 *
 */
@Mapper
@Repository
public interface BookDao {
    List<Books> getBooks();

    int addBook(Books books);

    int deleteBook(int id);

    Books getUpdateBook(int id);

    int editBook(Books books);

    List<Books> selectBook(String bookName);
}
